-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material-experimental/mdc-select): float label on focus if there's a placeholder #22187
Conversation
Adds an exception for one missing test until angular#22187 is merged.
Adds an exception for one missing test until angular#22187 is merged.
d9d5501
to
84250b0
Compare
Adds an exception for one missing test until #22187 is merged.
Adds an exception for one missing test until #22187 is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
84250b0
to
0517fd0
Compare
Need rebase (passes global TAP) |
…s a placeholder This is the equivalent of angular#19517 for the MDC-based select. Historically we've only floated the `mat-select` label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there's `placeholder` text that can be shown. This behavior is consistent with `MatInput`.
Rebased. |
0517fd0
to
57025be
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This is the equivalent of #19517 for the MDC-based select.
Historically we've only floated the
mat-select
label if a value is selected or the panel is open, because we wouldn't otherwise have anything to show. These changes make it so that we also float it on focus, if there'splaceholder
text that can be shown. This behavior is consistent withMatInput
.